from ..database import database
from peewee import *
from .currency import Currency

from .account import Account


class Gateway(database.Model):
    id = CharField(primary_key=True)
    screen_name = CharField(max_length=30)
    logo = CharField(max_length=40)
    currency = ForeignKeyField(Currency)
    account = ForeignKeyField(Account)
    fee_rate = DecimalField(decimal_places=4, auto_round=True)

